package com.sw.study.presisence.pojo;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by sw on 2020/3/25.
 * sqlMapConfig xml 获取数据源信息
 *
 */
public class Configuration {
    /**
     * 数据源信息
     */
    private DataSource dataSource;
    /**
     * key statementid = namesapce+sql id
     * value MappedStatement 对象
     */
    Map<String,MappedStatement> mappedStatementMap=new HashMap<>();

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MappedStatement> getMappedStatementMap() {
        return mappedStatementMap;
    }

    public void setMappedStatementMap(Map<String, MappedStatement> mappedStatementMap) {
        this.mappedStatementMap = mappedStatementMap;
    }
}